package com.jerry.proxy;

public class TestMain {

	
	public static void main(String[] args) {
		
//		Service service = new Single();
//		
//		// 静态代理
//		SingleProxy proxy = new SingleProxy(service);
//		proxy.single();
		
		// =========================
		
		
		// CGLIB代理
		Dancer dan =new Dancer();
		dan.dance();
		
		
//		Dancer proxy = (Dancer)new CglibProxy(dan).getInstance();
//		proxy.dance();
	}
}
